#ifndef MOVIELISTITEMWIDGET_H
#define MOVIELISTITEMWIDGET_H

#include <QWidget>

namespace Ui {
	class MovieListItemWidget;
}

class MovieListItemWidget : public QWidget
{
	Q_OBJECT

public:
	explicit MovieListItemWidget(QWidget *parent = 0);
	explicit MovieListItemWidget(const QString &title, QWidget *parent = 0);
	explicit MovieListItemWidget(const QString &title, const int year, const QStringList &genres, const int imdbRating, const int personalRating, const int lengthInSeconds, QWidget *parent = 0);
    ~MovieListItemWidget();

	void SetUp(const QString &title, const int year, const QStringList &genres,
			   const int imdbRating, const int personalRating, const int lengthInSeconds);
	void SetMovieTitle(const QString &title);
	void SetMovieYear(const int year);
	void SetMovieGenre(const QStringList &genres);
	void SetMovieIMDBRating(const int rating);
	void SetMoviePersonalRating(const int rating);
	void SetMovieLength(const int seconds);

	void SetMovie(QString title, int year, QStringList genres, int imdbRating, int personalRating, int lengthInSeconds);

private:
	Ui::MovieListItemWidget *ui;

	QString Title;
	int Year;
	QStringList Genre;
	int IMDBRating;
	int PersonalRating;
	int Length;
};

#endif // MOVIELISTITEMWIDGET_H
